<?php
return [
    //管理员部分
    'admin' => [
        //管理员部分
        'ERROR_ADMIN_EXISTS' => [
            'code' => 2000,
            'message' => '管理员已存在'
        ],
        'ERROR_ADMIN_DELETE_SUPER' => [
            'code' => 2001,
            'message' => '超级管理员不可删除'
        ],
        'ERROR_ADMIN_LOGIN_ERROR' => [
            'code' => 2002,
            'message' => '用户名或密码错误'
        ],
        'ERROR_ADMIN_LOGIN_STATUS' => [
            'code' => 2003,
            'message' => '管理员不可用'
        ],
        'ERROR_ADMIN_HAS_SUBJECT' => [
            'code' => 2004,
            'message'   =>  '管理员发布过题目不可删除'
        ],
        'ERROR_ADMIN_NOT_EXISTS' => [
            'code' => 2005,
            'message'   =>  '管理员不存在'
        ]
    ],
    //用户练习配置
    'practice' => [
        'ERROR_PRACTICE_NOT_EXISTS' => [
            'code' => 3000,
            'message'   =>   '数据不存在'
        ]
    ],
    //用户练习配置题目
    'practiceSubject'   =>  [
        'ERROR_PRACTICE_SUBJECT_NOT_EXISTS' => [
            'code' => 4000,
            'message'   =>   '数据不存在'
        ],
        'ERROR_PRACTICE_SUBJECT_USER_ID'    => [
            'code' => 4001,
            'message'   =>   '用户id必传'
        ]
    ],
    //习题
    'subject'   => [
        'ERROR_SUBJECT_NOT_EXISTS' => [
            'code' => 5000,
            'message'   =>   '数据不存在'
        ],
        'ERROR_SUBJECT_EXT_NOT_EXISTS' => [
            'code' => 5001,
            'message'   =>   '数据不存在'
        ],
        'ERROR_SUBJECT_EXT_BIND_NOT_EXISTS' => [
            'code' => 5002,
            'message'   =>   '数据不存在'
        ],
        'ERROR_SUBJECT_EXT_TITLE_EXISTS' => [
            'code' => 5003,
            'message'   =>  '名称已存在'
        ]
    ],
    //用户收藏
    'userCollect' => [
        'ERROR_USER_COLLECT_NOT_EXISTS' => [
            'code' => 6000,
            'message'   =>   '数据不存在'
        ]
    ],
    //用户
    'user'  => [
        'ERROR_USER_NOT_EXISTS' => [
            'code' => 7000,
            'message'   =>   '用户不存在'
        ],
        'ERROR_USER_EXISTS' => [
            'code' => 7001,
            'message'   =>   '用户已存在'
        ],
        'ERROR_USER_EMAIL_EXISTS' => [
            'code' => 7002,
            'message'   =>   '邮箱已存在'
        ],
        'ERROR_USER_PHONE_EXISTS' => [
            'code' => 7004,
            'message'   =>   '手机号已存在'
        ],
        'ERROR_USER_CAN_NOT_EXISTS' => [
            'code' => 7005,
            'message'   =>   '用户不能被删除'
        ],
        'ERROR_USER_LOGIN_FAILED' => [
            'code' => 7006,
            'message'   =>   '用户名或密码错误'
        ],
        'ERROR_USER_OLD_PWD_ERROR' => [
            'code' => 7007,
            'message'   =>   '旧密码错误'
        ]
    ],
    //用户练习题目统计
    'userSubjectStatic' => [
        'ERROR_DATA_NOT_EXISTS' => [
            'code' => 7000,
            'message'   =>   '数据不存在'
        ],
        'ERROR_USER_ID' => [
            'code' => 7001,
            'message'   =>   '用户id必传'
        ]
    ],
    //订单
    'userVipOrder'  =>  [
        'ERROR_DATA_NOT_EXISTS' => [
            'code' => 8000,
            'message'   =>   '数据不存在'
        ],
        'ERROR_CHARGE_INNER_NUM_NOT_EXISTS' =>  [
            'code' => 8001,
            'message'   =>   '订单号不存在'
        ],
        'ERROR_CHARGE_INNER_NUM_PAYED' => [
            'code' => 8002,
            'message'   =>   '订单已支付'
        ],
        'ERROR_CHARGE_MONEY_ERROR' => [
            'code' => 8003,
            'message'   =>   '订单金额不一致'
        ],
        'ERROR_CHARGE_PAY_MONEY_ERROR' => [
            'code' => 8004,
            'message'   =>   '支付金额不一致'
        ],
        'ERROR_CHARGE_EXPIRE_TIME' => [
            'code' => 8005,
            'message'   =>   '订单已过期'
        ]
    ]
];